﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001513 RID: 5395
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class WorkbenchEnhanceBuffFuncInfo : IMessage<WorkbenchEnhanceBuffFuncInfo>, IMessage, IEquatable<WorkbenchEnhanceBuffFuncInfo>, IDeepCloneable<WorkbenchEnhanceBuffFuncInfo>, IBufferMessage
	{
		// Token: 0x170043EE RID: 17390
		// (get) Token: 0x0600F165 RID: 61797 RVA: 0x002845B8 File Offset: 0x002827B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<WorkbenchEnhanceBuffFuncInfo> Parser
		{
			get
			{
				return WorkbenchEnhanceBuffFuncInfo._parser;
			}
		}

		// Token: 0x170043EF RID: 17391
		// (get) Token: 0x0600F166 RID: 61798 RVA: 0x002845BF File Offset: 0x002827BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return WorkbenchEnhanceBuffFuncInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170043F0 RID: 17392
		// (get) Token: 0x0600F167 RID: 61799 RVA: 0x002845D1 File Offset: 0x002827D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return WorkbenchEnhanceBuffFuncInfo.Descriptor;
			}
		}

		// Token: 0x0600F168 RID: 61800 RVA: 0x002845D8 File Offset: 0x002827D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchEnhanceBuffFuncInfo()
		{
		}

		// Token: 0x0600F169 RID: 61801 RVA: 0x002845EC File Offset: 0x002827EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchEnhanceBuffFuncInfo(WorkbenchEnhanceBuffFuncInfo other) : this()
		{
			this.curNum_ = other.curNum_;
			this.buffEnhanceCostMap_ = other.buffEnhanceCostMap_.Clone();
			this.maxNum_ = other.maxNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600F16A RID: 61802 RVA: 0x00284639 File Offset: 0x00282839
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchEnhanceBuffFuncInfo Clone()
		{
			return new WorkbenchEnhanceBuffFuncInfo(this);
		}

		// Token: 0x170043F1 RID: 17393
		// (get) Token: 0x0600F16B RID: 61803 RVA: 0x00284641 File Offset: 0x00282841
		// (set) Token: 0x0600F16C RID: 61804 RVA: 0x00284649 File Offset: 0x00282849
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurNum
		{
			get
			{
				return this.curNum_;
			}
			set
			{
				this.curNum_ = value;
			}
		}

		// Token: 0x170043F2 RID: 17394
		// (get) Token: 0x0600F16D RID: 61805 RVA: 0x00284652 File Offset: 0x00282852
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, uint> BuffEnhanceCostMap
		{
			get
			{
				return this.buffEnhanceCostMap_;
			}
		}

		// Token: 0x170043F3 RID: 17395
		// (get) Token: 0x0600F16E RID: 61806 RVA: 0x0028465A File Offset: 0x0028285A
		// (set) Token: 0x0600F16F RID: 61807 RVA: 0x00284662 File Offset: 0x00282862
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxNum
		{
			get
			{
				return this.maxNum_;
			}
			set
			{
				this.maxNum_ = value;
			}
		}

		// Token: 0x0600F170 RID: 61808 RVA: 0x0028466B File Offset: 0x0028286B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as WorkbenchEnhanceBuffFuncInfo);
		}

		// Token: 0x0600F171 RID: 61809 RVA: 0x0028467C File Offset: 0x0028287C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(WorkbenchEnhanceBuffFuncInfo other)
		{
			return other != null && (other == this || (this.CurNum == other.CurNum && this.BuffEnhanceCostMap.Equals(other.BuffEnhanceCostMap) && this.MaxNum == other.MaxNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600F172 RID: 61810 RVA: 0x002846DC File Offset: 0x002828DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurNum != 0U)
			{
				num ^= this.CurNum.GetHashCode();
			}
			num ^= this.BuffEnhanceCostMap.GetHashCode();
			if (this.MaxNum != 0U)
			{
				num ^= this.MaxNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600F173 RID: 61811 RVA: 0x00284742 File Offset: 0x00282942
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600F174 RID: 61812 RVA: 0x0028474A File Offset: 0x0028294A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600F175 RID: 61813 RVA: 0x00284754 File Offset: 0x00282954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MaxNum != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.MaxNum);
			}
			this.buffEnhanceCostMap_.WriteTo(ref output, WorkbenchEnhanceBuffFuncInfo._map_buffEnhanceCostMap_codec);
			if (this.CurNum != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.CurNum);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600F176 RID: 61814 RVA: 0x002847C0 File Offset: 0x002829C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurNum);
			}
			num += this.buffEnhanceCostMap_.CalculateSize(WorkbenchEnhanceBuffFuncInfo._map_buffEnhanceCostMap_codec);
			if (this.MaxNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600F177 RID: 61815 RVA: 0x0028482C File Offset: 0x00282A2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(WorkbenchEnhanceBuffFuncInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurNum != 0U)
			{
				this.CurNum = other.CurNum;
			}
			this.buffEnhanceCostMap_.MergeFrom(other.buffEnhanceCostMap_);
			if (other.MaxNum != 0U)
			{
				this.MaxNum = other.MaxNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600F178 RID: 61816 RVA: 0x0028488D File Offset: 0x00282A8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600F179 RID: 61817 RVA: 0x00284898 File Offset: 0x00282A98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 98U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.CurNum = input.ReadUInt32();
						}
					}
					else
					{
						this.buffEnhanceCostMap_.AddEntriesFrom(ref input, WorkbenchEnhanceBuffFuncInfo._map_buffEnhanceCostMap_codec);
					}
				}
				else
				{
					this.MaxNum = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005F49 RID: 24393
		private static readonly MessageParser<WorkbenchEnhanceBuffFuncInfo> _parser = new MessageParser<WorkbenchEnhanceBuffFuncInfo>(() => new WorkbenchEnhanceBuffFuncInfo());

		// Token: 0x04005F4A RID: 24394
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005F4B RID: 24395
		public const int CurNumFieldNumber = 14;

		// Token: 0x04005F4C RID: 24396
		private uint curNum_;

		// Token: 0x04005F4D RID: 24397
		public const int BuffEnhanceCostMapFieldNumber = 12;

		// Token: 0x04005F4E RID: 24398
		private static readonly MapField<uint, uint>.Codec _map_buffEnhanceCostMap_codec = new MapField<uint, uint>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForUInt32(16U, 0U), 98U);

		// Token: 0x04005F4F RID: 24399
		private readonly MapField<uint, uint> buffEnhanceCostMap_ = new MapField<uint, uint>();

		// Token: 0x04005F50 RID: 24400
		public const int MaxNumFieldNumber = 6;

		// Token: 0x04005F51 RID: 24401
		private uint maxNum_;
	}
}
